<div class="row">
    <div class="col-lg-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>商品管理</h5>

            </div>

            <div class="ibox-content">


                <table class="table table-striped table-bordered table-hover">

                    <tr>
                        <th><input type="checkbox"></th>
                        <th>序号</th>
                        <th>分类</th>
                        <th>品牌</th>
                        <th>商品图片</th>
                        <th>商品名称</th>
                        <th>商品简介</th>
                        <th>商品状态</th>
                        <th>推荐</th>
                        <th>操作</th>
                    </tr>

                    {notempty name="DATA['info']"}
                    {foreach name="DATA['info']" item="value" key="k"}
                    <tr>
                        <td><input type="checkbox"></td>
                        <td>{$k+1}</td>
                        <td>{$value['item']}</td>
                        <td>{$value['brand']}</td>
                        <td><img src="{$value['url']}" style="width:40px;height: 40px;"></td>
                        <td>{$value['title']}</td>
                        <td>{$value['detail']}</td>

                        <td>
                            {if condition="$value.is_show eq 1"}
                            <a href="javascript:;" id="{$value['id']}" data-show="1">显示</a>
                            {else/}
                            <a href="javascript:;" id="{$value['id']}" data-show="2">不显示</a>
                            {/if}

                        </td>
                        <td>
                            {if condition="$value.is_recommand eq 1"}
                            <a href="javascript:;" class="{$value['id']}" data-recommand="1">推荐</a>
                            {else/}
                            <a href="javascript:;" class="{$value['id']}" data-recommand="2">不推荐</a>
                            {/if}


                        </td>
                        <td>
                            <a href="javascript:;" id="{$value['id']}" name='detail'>详情</a> &nbsp;
                            <a href="javascript:;" id="{$value['id']}" name='del'>删除</a>
                        </td>
                    </tr>
                    {/foreach}
                    {/notempty}
                </table>
                {notempty name="DATA['page']"}
                <div>{$DATA['page']}</div>
                {/notempty}
            </div>
        </div>
    </div>
</div>
